]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Specify anchor when deleting characters via timeout
authorSebastian Keller <skeller@gnome.org>
Fri, 15 Mar 2024 10:52:37 +0000 (11:52 +0100)
committerSebastian Keller <skeller@gnome.org>
Fri, 15 Mar 2024 10:52:37 +0000 (11:52 +0100)
commit04fd3a4277329561fcc110e05bc3c32fd414dc61
tree119f9c545e97147199c9b45325b0e4f816b83330
parent881ec91370aab0b86f05845edc689534f9ba1ad6
keyboard: Specify anchor when deleting characters via timeout

6e80f858c dropped the second cursor argument used as anchor when calling
the delete function from the timeout. This was causing the early check
that was trying to detect when deleting from the beginning of the text
to fail, because anchor was now undefined.

Fixes: 6e80f858c ("keyboard: Move backspace key handling to KeyboardController")
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7484
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3239>
js/ui/keyboard.js